﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using Imaginarium.jobs.skills;
using Imaginarium.XML;

namespace Imaginarium.Factorys
{
    public class SkillFactory
    {
        private static Hashtable loadedSkills = new Hashtable();

        public static Skill getSkillById(int skillId) {
            Skill ans = null;
            ans = (Skill)loadedSkills[skillId];
            if (ans == null) {
                ans = XmlLoader.loadSkill(skillId);
                loadedSkills.Add(skillId, ans);
            }

            return ans;
        }

    }
}
